<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/xhtml;charset=utf-8" http-equiv="Content-Type"/>
<meta content="IE=9" http-equiv="X-UA-Compatible"/>
<meta content="Doxygen 1.8.13" name="generator"/>
<title>OpenCV: Geometric Image Transformations</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon"/>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script src="../../jquery.js" type="text/javascript"></script>
<script src="../../dynsections.js" type="text/javascript"></script>
<script src="../../tutorial-utils.js" type="text/javascript"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script src="../../search/searchdata.js" type="text/javascript"></script>
<script src="../../search/search.js" type="text/javascript"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js" type="text/javascript"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css"/>
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellpadding="0" cellspacing="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
    <span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script src="../../menudata.js" type="text/javascript"></script>
<script src="../../menu.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow" onkeydown="return searchBox.OnSearchSelectKey(event)" onmouseout="return searchBox.OnSearchSelectHide()" onmouseover="return searchBox.OnSearchSelectShow()">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe frameborder="0" id="MSearchResults" name="MSearchResults" src="javascript:void(0)">
</iframe>
</div>
<div class="header">
  <div class="summary">
<a href="#enum-members">Enumerations</a> |
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Geometric Image Transformations<div class="ingroups"><a class="el" href="../../d7/dbd/group__imgproc.html">Image Processing</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:ga5bb5a1fea74ea38e1a5445ca803ff121"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d54/group__imgproc__transform.html#ga5bb5a1fea74ea38e1a5445ca803ff121">cv::InterpolationFlags</a> { <br/>
  <a class="el" href="../../da/d54/group__imgproc__transform.html#gga5bb5a1fea74ea38e1a5445ca803ff121aa5521d8e080972c762467c45f3b70e6c">cv::INTER_NEAREST</a> = 0, 
<br/>
  <a class="el" href="../../da/d54/group__imgproc__transform.html#gga5bb5a1fea74ea38e1a5445ca803ff121ac97d8e4880d8b5d509e96825c7522deb">cv::INTER_LINEAR</a> = 1, 
<br/>
  <a class="el" href="../../da/d54/group__imgproc__transform.html#gga5bb5a1fea74ea38e1a5445ca803ff121a55e404e7fa9684af79fe9827f36a5dc1">cv::INTER_CUBIC</a> = 2, 
<br/>
  <a class="el" href="../../da/d54/group__imgproc__transform.html#gga5bb5a1fea74ea38e1a5445ca803ff121acf959dca2480cc694ca016b81b442ceb">cv::INTER_AREA</a> = 3, 
<br/>
  <a class="el" href="../../da/d54/group__imgproc__transform.html#gga5bb5a1fea74ea38e1a5445ca803ff121ac6c578caa97f2d00f82bac879cf3c781">cv::INTER_LANCZOS4</a> = 4, 
<br/>
  <a class="el" href="../../da/d54/group__imgproc__transform.html#gga5bb5a1fea74ea38e1a5445ca803ff121ac00f4a8155563cdc23437fc0959da935">cv::INTER_LINEAR_EXACT</a> = 5, 
<br/>
  <a class="el" href="../../da/d54/group__imgproc__transform.html#gga5bb5a1fea74ea38e1a5445ca803ff121a9c081e5a4d3685625a5e8a209d8cdab5">cv::INTER_NEAREST_EXACT</a> = 6, 
<br/>
  <a class="el" href="../../da/d54/group__imgproc__transform.html#gga5bb5a1fea74ea38e1a5445ca803ff121a49bb9f818707a31ae1f19158b60f7112">cv::INTER_MAX</a> = 7, 
<br/>
  <a class="el" href="../../da/d54/group__imgproc__transform.html#gga5bb5a1fea74ea38e1a5445ca803ff121a94cc44aa86159abcff4683ec6841b097">cv::WARP_FILL_OUTLIERS</a> = 8, 
<br/>
  <a class="el" href="../../da/d54/group__imgproc__transform.html#gga5bb5a1fea74ea38e1a5445ca803ff121aa48be1c433186c4eae1ea86aa0ca75ba">cv::WARP_INVERSE_MAP</a> = 16
<br/>
 }<tr class="memdesc:ga5bb5a1fea74ea38e1a5445ca803ff121"><td class="mdescLeft"> </td><td class="mdescRight">interpolation algorithm  <a href="../../da/d54/group__imgproc__transform.html#ga5bb5a1fea74ea38e1a5445ca803ff121">More...</a><br/></td></tr>
</td></tr>
<tr class="separator:ga5bb5a1fea74ea38e1a5445ca803ff121"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga628d8c499433359d67b1d830d46d8dae"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d54/group__imgproc__transform.html#ga628d8c499433359d67b1d830d46d8dae">cv::InterpolationMasks</a> { <br/>
  <a class="el" href="../../da/d54/group__imgproc__transform.html#gga628d8c499433359d67b1d830d46d8daea9ce4fddaf7714ea113a8a086d1d4b7f9">cv::INTER_BITS</a> = 5, 
<br/>
  <a class="el" href="../../da/d54/group__imgproc__transform.html#gga628d8c499433359d67b1d830d46d8daea5d3f110270a147224feaabac0c7a480b">cv::INTER_BITS2</a> = INTER_BITS * 2, 
<br/>
  <a class="el" href="../../da/d54/group__imgproc__transform.html#gga628d8c499433359d67b1d830d46d8daea2dee31b51b2c400c35a31bf24f8cd809">cv::INTER_TAB_SIZE</a> = 1 &lt;&lt; INTER_BITS, 
<br/>
  <a class="el" href="../../da/d54/group__imgproc__transform.html#gga628d8c499433359d67b1d830d46d8daeabdbe1089b768d20af013c344bcac74cf">cv::INTER_TAB_SIZE2</a> = INTER_TAB_SIZE * INTER_TAB_SIZE
<br/>
 }</td></tr>
<tr class="separator:ga628d8c499433359d67b1d830d46d8dae"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga066c91770d0dea54cc1a018ce0344485"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d54/group__imgproc__transform.html#ga066c91770d0dea54cc1a018ce0344485">cv::WarpPolarMode</a> { <br/>
  <a class="el" href="../../da/d54/group__imgproc__transform.html#gga066c91770d0dea54cc1a018ce0344485a5a09af7a3e3a9782fbb9a41d66152ba5">cv::WARP_POLAR_LINEAR</a> = 0, 
<br/>
  <a class="el" href="../../da/d54/group__imgproc__transform.html#gga066c91770d0dea54cc1a018ce0344485aaa857239a6f4dc607b18d29b8b43daa7">cv::WARP_POLAR_LOG</a> = 256
<br/>
 }<tr class="memdesc:ga066c91770d0dea54cc1a018ce0344485"><td class="mdescLeft"> </td><td class="mdescRight">Specify the polar mapping mode.  <a href="../../da/d54/group__imgproc__transform.html#ga066c91770d0dea54cc1a018ce0344485">More...</a><br/></td></tr>
</td></tr>
<tr class="separator:ga066c91770d0dea54cc1a018ce0344485"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga9156732fa8f01be9ebd1a194f2728b7f"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d54/group__imgproc__transform.html#ga9156732fa8f01be9ebd1a194f2728b7f">cv::convertMaps</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> map1, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> map2, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dstmap1, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dstmap2, int dstmap1type, bool nninterpolation=false)</td></tr>
<tr class="memdesc:ga9156732fa8f01be9ebd1a194f2728b7f"><td class="mdescLeft"> </td><td class="mdescRight">Converts image transformation maps from one representation to another.  <a href="../../da/d54/group__imgproc__transform.html#ga9156732fa8f01be9ebd1a194f2728b7f">More...</a><br/></td></tr>
<tr class="separator:ga9156732fa8f01be9ebd1a194f2728b7f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga8f6d378f9f8eebb5cb55cd3ae295a999"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d54/group__imgproc__transform.html#ga8f6d378f9f8eebb5cb55cd3ae295a999">cv::getAffineTransform</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga7d080aa40de011e4410bca63385ffe2a">Point2f</a> src[], const <a class="el" href="../../dc/d84/group__core__basic.html#ga7d080aa40de011e4410bca63385ffe2a">Point2f</a> dst[])</td></tr>
<tr class="memdesc:ga8f6d378f9f8eebb5cb55cd3ae295a999"><td class="mdescLeft"> </td><td class="mdescRight">Calculates an affine transform from three pairs of the corresponding points.  <a href="../../da/d54/group__imgproc__transform.html#ga8f6d378f9f8eebb5cb55cd3ae295a999">More...</a><br/></td></tr>
<tr class="separator:ga8f6d378f9f8eebb5cb55cd3ae295a999"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga47069038267385913c61334e3d6af2e0"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d54/group__imgproc__transform.html#ga47069038267385913c61334e3d6af2e0">cv::getAffineTransform</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> dst)</td></tr>
<tr class="separator:ga47069038267385913c61334e3d6af2e0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga20f62aa3235d869c9956436c870893ae"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d54/group__imgproc__transform.html#ga20f62aa3235d869c9956436c870893ae">cv::getPerspectiveTransform</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> dst, int solveMethod=<a class="el" href="../../d2/de8/group__core__array.html#ggaaf9ea5dcc392d5ae04eacb9920b9674ca247a3455cd64973152e17e26999dc024">DECOMP_LU</a>)</td></tr>
<tr class="memdesc:ga20f62aa3235d869c9956436c870893ae"><td class="mdescLeft"> </td><td class="mdescRight">Calculates a perspective transform from four pairs of the corresponding points.  <a href="../../da/d54/group__imgproc__transform.html#ga20f62aa3235d869c9956436c870893ae">More...</a><br/></td></tr>
<tr class="separator:ga20f62aa3235d869c9956436c870893ae"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gae66ba39ba2e47dd0750555c7e986ab85"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d54/group__imgproc__transform.html#gae66ba39ba2e47dd0750555c7e986ab85">cv::getPerspectiveTransform</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga7d080aa40de011e4410bca63385ffe2a">Point2f</a> src[], const <a class="el" href="../../dc/d84/group__core__basic.html#ga7d080aa40de011e4410bca63385ffe2a">Point2f</a> dst[], int solveMethod=<a class="el" href="../../d2/de8/group__core__array.html#ggaaf9ea5dcc392d5ae04eacb9920b9674ca247a3455cd64973152e17e26999dc024">DECOMP_LU</a>)</td></tr>
<tr class="separator:gae66ba39ba2e47dd0750555c7e986ab85"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga77576d06075c1a4b6ba1a608850cd614"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d54/group__imgproc__transform.html#ga77576d06075c1a4b6ba1a608850cd614">cv::getRectSubPix</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> image, <a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> patchSize, <a class="el" href="../../dc/d84/group__core__basic.html#ga7d080aa40de011e4410bca63385ffe2a">Point2f</a> center, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> patch, int patchType=-1)</td></tr>
<tr class="memdesc:ga77576d06075c1a4b6ba1a608850cd614"><td class="mdescLeft"> </td><td class="mdescRight">Retrieves a pixel rectangle from an image with sub-pixel accuracy.  <a href="../../da/d54/group__imgproc__transform.html#ga77576d06075c1a4b6ba1a608850cd614">More...</a><br/></td></tr>
<tr class="separator:ga77576d06075c1a4b6ba1a608850cd614"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gafbbc470ce83812914a70abfb604f4326"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d54/group__imgproc__transform.html#gafbbc470ce83812914a70abfb604f4326">cv::getRotationMatrix2D</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga7d080aa40de011e4410bca63385ffe2a">Point2f</a> center, double angle, double scale)</td></tr>
<tr class="memdesc:gafbbc470ce83812914a70abfb604f4326"><td class="mdescLeft"> </td><td class="mdescRight">Calculates an affine matrix of 2D rotation.  <a href="../../da/d54/group__imgproc__transform.html#gafbbc470ce83812914a70abfb604f4326">More...</a><br/></td></tr>
<tr class="separator:gafbbc470ce83812914a70abfb604f4326"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaef89d8cc92350c452b5422c8c6c5f58c"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../dc/d84/group__core__basic.html#ga392a6836e5dbc164888f4e39c7d9d9af">Matx23d</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d54/group__imgproc__transform.html#gaef89d8cc92350c452b5422c8c6c5f58c">cv::getRotationMatrix2D_</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga7d080aa40de011e4410bca63385ffe2a">Point2f</a> center, double angle, double scale)</td></tr>
<tr class="separator:gaef89d8cc92350c452b5422c8c6c5f58c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga57d3505a878a7e1a636645727ca08f51"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d54/group__imgproc__transform.html#ga57d3505a878a7e1a636645727ca08f51">cv::invertAffineTransform</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> M, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> iM)</td></tr>
<tr class="memdesc:ga57d3505a878a7e1a636645727ca08f51"><td class="mdescLeft"> </td><td class="mdescRight">Inverts an affine transformation.  <a href="../../da/d54/group__imgproc__transform.html#ga57d3505a878a7e1a636645727ca08f51">More...</a><br/></td></tr>
<tr class="separator:ga57d3505a878a7e1a636645727ca08f51"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaa38a6884ac8b6e0b9bed47939b5362f3"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d54/group__imgproc__transform.html#gaa38a6884ac8b6e0b9bed47939b5362f3">cv::linearPolar</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, <a class="el" href="../../dc/d84/group__core__basic.html#ga7d080aa40de011e4410bca63385ffe2a">Point2f</a> center, double maxRadius, int flags)</td></tr>
<tr class="memdesc:gaa38a6884ac8b6e0b9bed47939b5362f3"><td class="mdescLeft"> </td><td class="mdescRight">Remaps an image to polar coordinates space.  <a href="../../da/d54/group__imgproc__transform.html#gaa38a6884ac8b6e0b9bed47939b5362f3">More...</a><br/></td></tr>
<tr class="separator:gaa38a6884ac8b6e0b9bed47939b5362f3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaec3a0b126a85b5ca2c667b16e0ae022d"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d54/group__imgproc__transform.html#gaec3a0b126a85b5ca2c667b16e0ae022d">cv::logPolar</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, <a class="el" href="../../dc/d84/group__core__basic.html#ga7d080aa40de011e4410bca63385ffe2a">Point2f</a> center, double M, int flags)</td></tr>
<tr class="memdesc:gaec3a0b126a85b5ca2c667b16e0ae022d"><td class="mdescLeft"> </td><td class="mdescRight">Remaps an image to semilog-polar coordinates space.  <a href="../../da/d54/group__imgproc__transform.html#gaec3a0b126a85b5ca2c667b16e0ae022d">More...</a><br/></td></tr>
<tr class="separator:gaec3a0b126a85b5ca2c667b16e0ae022d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gab75ef31ce5cdfb5c44b6da5f3b908ea4"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d54/group__imgproc__transform.html#gab75ef31ce5cdfb5c44b6da5f3b908ea4">cv::remap</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> map1, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> map2, int interpolation, int borderMode=<a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5aed2e4346047e265c8c5a6d0276dcd838">BORDER_CONSTANT</a>, const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp;borderValue=<a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a>())</td></tr>
<tr class="memdesc:gab75ef31ce5cdfb5c44b6da5f3b908ea4"><td class="mdescLeft"> </td><td class="mdescRight">Applies a generic geometrical transformation to an image.  <a href="../../da/d54/group__imgproc__transform.html#gab75ef31ce5cdfb5c44b6da5f3b908ea4">More...</a><br/></td></tr>
<tr class="separator:gab75ef31ce5cdfb5c44b6da5f3b908ea4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga47a974309e9102f5f08231edc7e7529d"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d54/group__imgproc__transform.html#ga47a974309e9102f5f08231edc7e7529d">cv::resize</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, <a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> dsize, double fx=0, double fy=0, int interpolation=<a class="el" href="../../da/d54/group__imgproc__transform.html#gga5bb5a1fea74ea38e1a5445ca803ff121ac97d8e4880d8b5d509e96825c7522deb">INTER_LINEAR</a>)</td></tr>
<tr class="memdesc:ga47a974309e9102f5f08231edc7e7529d"><td class="mdescLeft"> </td><td class="mdescRight">Resizes an image.  <a href="../../da/d54/group__imgproc__transform.html#ga47a974309e9102f5f08231edc7e7529d">More...</a><br/></td></tr>
<tr class="separator:ga47a974309e9102f5f08231edc7e7529d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga0203d9ee5fcd28d40dbc4a1ea4451983"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d54/group__imgproc__transform.html#ga0203d9ee5fcd28d40dbc4a1ea4451983">cv::warpAffine</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> M, <a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> dsize, int flags=<a class="el" href="../../da/d54/group__imgproc__transform.html#gga5bb5a1fea74ea38e1a5445ca803ff121ac97d8e4880d8b5d509e96825c7522deb">INTER_LINEAR</a>, int borderMode=<a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5aed2e4346047e265c8c5a6d0276dcd838">BORDER_CONSTANT</a>, const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp;borderValue=<a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a>())</td></tr>
<tr class="memdesc:ga0203d9ee5fcd28d40dbc4a1ea4451983"><td class="mdescLeft"> </td><td class="mdescRight">Applies an affine transformation to an image.  <a href="../../da/d54/group__imgproc__transform.html#ga0203d9ee5fcd28d40dbc4a1ea4451983">More...</a><br/></td></tr>
<tr class="separator:ga0203d9ee5fcd28d40dbc4a1ea4451983"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaf73673a7e8e18ec6963e3774e6a94b87"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d54/group__imgproc__transform.html#gaf73673a7e8e18ec6963e3774e6a94b87">cv::warpPerspective</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> M, <a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> dsize, int flags=<a class="el" href="../../da/d54/group__imgproc__transform.html#gga5bb5a1fea74ea38e1a5445ca803ff121ac97d8e4880d8b5d509e96825c7522deb">INTER_LINEAR</a>, int borderMode=<a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5aed2e4346047e265c8c5a6d0276dcd838">BORDER_CONSTANT</a>, const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp;borderValue=<a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a>())</td></tr>
<tr class="memdesc:gaf73673a7e8e18ec6963e3774e6a94b87"><td class="mdescLeft"> </td><td class="mdescRight">Applies a perspective transformation to an image.  <a href="../../da/d54/group__imgproc__transform.html#gaf73673a7e8e18ec6963e3774e6a94b87">More...</a><br/></td></tr>
<tr class="separator:gaf73673a7e8e18ec6963e3774e6a94b87"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga49481ab24fdaa0ffa4d3e63d14c0d5e4"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d54/group__imgproc__transform.html#ga49481ab24fdaa0ffa4d3e63d14c0d5e4">cv::warpPolar</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, <a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> dsize, <a class="el" href="../../dc/d84/group__core__basic.html#ga7d080aa40de011e4410bca63385ffe2a">Point2f</a> center, double maxRadius, int flags)</td></tr>
<tr class="memdesc:ga49481ab24fdaa0ffa4d3e63d14c0d5e4"><td class="mdescLeft"> </td><td class="mdescRight">Remaps an image to polar or semilog-polar coordinates space.  <a href="../../da/d54/group__imgproc__transform.html#ga49481ab24fdaa0ffa4d3e63d14c0d5e4">More...</a><br/></td></tr>
<tr class="separator:ga49481ab24fdaa0ffa4d3e63d14c0d5e4"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a id="details" name="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>The functions in this section perform various geometrical transformations of 2D images. They do not change the image content but deform the pixel grid and map this deformed grid to the destination image. In fact, to avoid sampling artifacts, the mapping is done in the reverse order, from destination to the source. That is, for each pixel \((x, y)\) of the destination image, the functions compute coordinates of the corresponding "donor" pixel in the source image and copy the pixel value:</p>
<p class="formulaDsp">
\[\texttt{dst} (x,y)= \texttt{src} (f_x(x,y), f_y(x,y))\]
</p>
<p>In case when you specify the forward mapping \(\left&lt;g_x, g_y\right&gt;: \texttt{src} \rightarrow \texttt{dst}\), the OpenCV functions first compute the corresponding inverse mapping \(\left&lt;f_x, f_y\right&gt;: \texttt{dst} \rightarrow \texttt{src}\) and then use the above formula.</p>
<p>The actual implementations of the geometrical transformations, from the most generic remap and to the simplest and the fastest resize, need to solve two main problems with the above formula:</p>
<ul>
<li>Extrapolation of non-existing pixels. Similarly to the filtering functions described in the previous section, for some \((x,y)\), either one of \(f_x(x,y)\), or \(f_y(x,y)\), or both of them may fall outside of the image. In this case, an extrapolation method needs to be used. OpenCV provides the same selection of extrapolation methods as in the filtering functions. In addition, it provides the method <a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5a886a5eb6b466854d63f9e742d5c8eefe" title="uvwxyz|abcdefgh|ijklmno ">BORDER_TRANSPARENT</a>. This means that the corresponding pixels in the destination image will not be modified at all.</li>
<li>Interpolation of pixel values. Usually \(f_x(x,y)\) and \(f_y(x,y)\) are floating-point numbers. This means that \(\left&lt;f_x, f_y\right&gt;\) can be either an affine or perspective transformation, or radial lens distortion correction, and so on. So, a pixel value at fractional coordinates needs to be retrieved. In the simplest case, the coordinates can be just rounded to the nearest integer coordinates and the corresponding pixel can be used. This is called a nearest-neighbor interpolation. However, a better result can be achieved by using more sophisticated <a href="http://en.wikipedia.org/wiki/Multivariate_interpolation">interpolation methods</a> , where a polynomial function is fit into some neighborhood of the computed pixel \((f_x(x,y), f_y(x,y))\), and then the value of the polynomial at \((f_x(x,y), f_y(x,y))\) is taken as the interpolated pixel value. In OpenCV, you can choose between several interpolation methods. See resize for details.</li>
</ul>
<dl class="section note"><dt>Note</dt><dd>The geometrical transformations do not work with <code>CV_8S</code> or <code>CV_32S</code> images. </dd></dl>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="ga5bb5a1fea74ea38e1a5445ca803ff121"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5bb5a1fea74ea38e1a5445ca803ff121">◆ </a></span>InterpolationFlags</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../da/d54/group__imgproc__transform.html#ga5bb5a1fea74ea38e1a5445ca803ff121">cv::InterpolationFlags</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<p>interpolation algorithm </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga5bb5a1fea74ea38e1a5445ca803ff121aa5521d8e080972c762467c45f3b70e6c"></a>INTER_NEAREST <div class="python_language">Python: cv.INTER_NEAREST</div></td><td class="fielddoc"><p>nearest neighbor interpolation </p>
</td></tr>
<tr><td class="fieldname"><a id="gga5bb5a1fea74ea38e1a5445ca803ff121ac97d8e4880d8b5d509e96825c7522deb"></a>INTER_LINEAR <div class="python_language">Python: cv.INTER_LINEAR</div></td><td class="fielddoc"><p>bilinear interpolation </p>
</td></tr>
<tr><td class="fieldname"><a id="gga5bb5a1fea74ea38e1a5445ca803ff121a55e404e7fa9684af79fe9827f36a5dc1"></a>INTER_CUBIC <div class="python_language">Python: cv.INTER_CUBIC</div></td><td class="fielddoc"><p>bicubic interpolation </p>
</td></tr>
<tr><td class="fieldname"><a id="gga5bb5a1fea74ea38e1a5445ca803ff121acf959dca2480cc694ca016b81b442ceb"></a>INTER_AREA <div class="python_language">Python: cv.INTER_AREA</div></td><td class="fielddoc"><p>resampling using pixel area relation. It may be a preferred method for image decimation, as it gives moire'-free results. But when the image is zoomed, it is similar to the INTER_NEAREST method. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga5bb5a1fea74ea38e1a5445ca803ff121ac6c578caa97f2d00f82bac879cf3c781"></a>INTER_LANCZOS4 <div class="python_language">Python: cv.INTER_LANCZOS4</div></td><td class="fielddoc"><p>Lanczos interpolation over 8x8 neighborhood </p>
</td></tr>
<tr><td class="fieldname"><a id="gga5bb5a1fea74ea38e1a5445ca803ff121ac00f4a8155563cdc23437fc0959da935"></a>INTER_LINEAR_EXACT <div class="python_language">Python: cv.INTER_LINEAR_EXACT</div></td><td class="fielddoc"><p>Bit exact bilinear interpolation </p>
</td></tr>
<tr><td class="fieldname"><a id="gga5bb5a1fea74ea38e1a5445ca803ff121a9c081e5a4d3685625a5e8a209d8cdab5"></a>INTER_NEAREST_EXACT <div class="python_language">Python: cv.INTER_NEAREST_EXACT</div></td><td class="fielddoc"><p>Bit exact nearest neighbor interpolation. This will produce same results as the nearest neighbor method in PIL, scikit-image or Matlab. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga5bb5a1fea74ea38e1a5445ca803ff121a49bb9f818707a31ae1f19158b60f7112"></a>INTER_MAX <div class="python_language">Python: cv.INTER_MAX</div></td><td class="fielddoc"><p>mask for interpolation codes </p>
</td></tr>
<tr><td class="fieldname"><a id="gga5bb5a1fea74ea38e1a5445ca803ff121a94cc44aa86159abcff4683ec6841b097"></a>WARP_FILL_OUTLIERS <div class="python_language">Python: cv.WARP_FILL_OUTLIERS</div></td><td class="fielddoc"><p>flag, fills all of the destination image pixels. If some of them correspond to outliers in the source image, they are set to zero </p>
</td></tr>
<tr><td class="fieldname"><a id="gga5bb5a1fea74ea38e1a5445ca803ff121aa48be1c433186c4eae1ea86aa0ca75ba"></a>WARP_INVERSE_MAP <div class="python_language">Python: cv.WARP_INVERSE_MAP</div></td><td class="fielddoc"><p>flag, inverse transformation</p>
<p>For example, <a class="el" href="../../da/d54/group__imgproc__transform.html#gaa38a6884ac8b6e0b9bed47939b5362f3" title="Remaps an image to polar coordinates space. ">linearPolar</a> or <a class="el" href="../../da/d54/group__imgproc__transform.html#gaec3a0b126a85b5ca2c667b16e0ae022d" title="Remaps an image to semilog-polar coordinates space. ">logPolar</a> transforms:</p><ul>
<li>flag is <b>not</b> set: \(dst( \rho , \phi ) = src(x,y)\)</li>
<li>flag is set: \(dst(x,y) = src( \rho , \phi )\) </li>
</ul>
</td></tr>
</table>
</div>
</div>
<a id="ga628d8c499433359d67b1d830d46d8dae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga628d8c499433359d67b1d830d46d8dae">◆ </a></span>InterpolationMasks</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../da/d54/group__imgproc__transform.html#ga628d8c499433359d67b1d830d46d8dae">cv::InterpolationMasks</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga628d8c499433359d67b1d830d46d8daea9ce4fddaf7714ea113a8a086d1d4b7f9"></a>INTER_BITS <div class="python_language">Python: cv.INTER_BITS</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga628d8c499433359d67b1d830d46d8daea5d3f110270a147224feaabac0c7a480b"></a>INTER_BITS2 <div class="python_language">Python: cv.INTER_BITS2</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga628d8c499433359d67b1d830d46d8daea2dee31b51b2c400c35a31bf24f8cd809"></a>INTER_TAB_SIZE <div class="python_language">Python: cv.INTER_TAB_SIZE</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga628d8c499433359d67b1d830d46d8daeabdbe1089b768d20af013c344bcac74cf"></a>INTER_TAB_SIZE2 <div class="python_language">Python: cv.INTER_TAB_SIZE2</div></td><td class="fielddoc"></td></tr>
</table>
</div>
</div>
<a id="ga066c91770d0dea54cc1a018ce0344485"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga066c91770d0dea54cc1a018ce0344485">◆ </a></span>WarpPolarMode</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../da/d54/group__imgproc__transform.html#ga066c91770d0dea54cc1a018ce0344485">cv::WarpPolarMode</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<p>Specify the polar mapping mode. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../da/d54/group__imgproc__transform.html#ga49481ab24fdaa0ffa4d3e63d14c0d5e4" title="Remaps an image to polar or semilog-polar coordinates space. ">warpPolar</a> </dd></dl>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga066c91770d0dea54cc1a018ce0344485a5a09af7a3e3a9782fbb9a41d66152ba5"></a>WARP_POLAR_LINEAR <div class="python_language">Python: cv.WARP_POLAR_LINEAR</div></td><td class="fielddoc"><p>Remaps an image to/from polar space. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga066c91770d0dea54cc1a018ce0344485aaa857239a6f4dc607b18d29b8b43daa7"></a>WARP_POLAR_LOG <div class="python_language">Python: cv.WARP_POLAR_LOG</div></td><td class="fielddoc"><p>Remaps an image to/from semilog-polar space. </p>
</td></tr>
</table>
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga9156732fa8f01be9ebd1a194f2728b7f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9156732fa8f01be9ebd1a194f2728b7f">◆ </a></span>convertMaps()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::convertMaps </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>map1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>map2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dstmap1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dstmap2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>dstmap1type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool </td>
          <td class="paramname"><em>nninterpolation</em> = <code>false</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dstmap1, dstmap2</td><td>=</td><td>cv.convertMaps(</td><td class="paramname">map1, map2, dstmap1type[, dstmap1[, dstmap2[, nninterpolation]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<p>Converts image transformation maps from one representation to another. </p>
<p>The function converts a pair of maps for remap from one representation to another. The following options ( (map1.type(), map2.type()) \(\rightarrow\) (dstmap1.type(), dstmap2.type()) ) are supported:</p>
<ul>
<li>\(\texttt{(CV_32FC1, CV_32FC1)} \rightarrow \texttt{(CV_16SC2, CV_16UC1)}\). This is the most frequently used conversion operation, in which the original floating-point maps (see remap ) are converted to a more compact and much faster fixed-point representation. The first output array contains the rounded coordinates and the second array (created only when nninterpolation=false ) contains indices in the interpolation tables.</li>
<li>\(\texttt{(CV_32FC2)} \rightarrow \texttt{(CV_16SC2, CV_16UC1)}\). The same as above but the original maps are stored in one 2-channel matrix.</li>
<li>Reverse conversion. Obviously, the reconstructed floating-point maps will not be exactly the same as the originals.</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">map1</td><td>The first input map of type CV_16SC2, CV_32FC1, or CV_32FC2 . </td></tr>
    <tr><td class="paramname">map2</td><td>The second input map of type CV_16UC1, CV_32FC1, or none (empty matrix), respectively. </td></tr>
    <tr><td class="paramname">dstmap1</td><td>The first output map that has the type dstmap1type and the same size as src . </td></tr>
    <tr><td class="paramname">dstmap2</td><td>The second output map. </td></tr>
    <tr><td class="paramname">dstmap1type</td><td>Type of the first output map that should be CV_16SC2, CV_32FC1, or CV_32FC2 . </td></tr>
    <tr><td class="paramname">nninterpolation</td><td>Flag indicating whether the fixed-point maps are used for the nearest-neighbor or for a more complex interpolation.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../da/d54/group__imgproc__transform.html#gab75ef31ce5cdfb5c44b6da5f3b908ea4" title="Applies a generic geometrical transformation to an image. ">remap</a>, <a class="el" href="../../d9/d0c/group__calib3d.html#ga69f2545a8b62a6b0fc2ee060dc30559d" title="Transforms an image to compensate for lens distortion. ">undistort</a>, <a class="el" href="../../d9/d0c/group__calib3d.html#ga7dfb72c9cf9780a347fbe3d1c47e5d5a" title="Computes the undistortion and rectification transformation map. ">initUndistortRectifyMap</a> </dd></dl>
</div>
</div>
<a id="ga8f6d378f9f8eebb5cb55cd3ae295a999"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8f6d378f9f8eebb5cb55cd3ae295a999">◆ </a></span>getAffineTransform() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> cv::getAffineTransform </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga7d080aa40de011e4410bca63385ffe2a">Point2f</a> </td>
          <td class="paramname"><em>src</em>[], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga7d080aa40de011e4410bca63385ffe2a">Point2f</a> </td>
          <td class="paramname"><em>dst</em>[] </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.getAffineTransform(</td><td class="paramname">src, dst</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<p>Calculates an affine transform from three pairs of the corresponding points. </p>
<p>The function calculates the \(2 \times 3\) matrix of an affine transform so that:</p>
<p class="formulaDsp">
\[\begin{bmatrix} x'_i \\ y'_i \end{bmatrix} = \texttt{map_matrix} \cdot \begin{bmatrix} x_i \\ y_i \\ 1 \end{bmatrix}\]
</p>
<p>where</p>
<p class="formulaDsp">
\[dst(i)=(x'_i,y'_i), src(i)=(x_i, y_i), i=0,1,2\]
</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>Coordinates of triangle vertices in the source image. </td></tr>
    <tr><td class="paramname">dst</td><td>Coordinates of the corresponding triangle vertices in the destination image.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../da/d54/group__imgproc__transform.html#ga0203d9ee5fcd28d40dbc4a1ea4451983" title="Applies an affine transformation to an image. ">warpAffine</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga393164aa54bb9169ce0a8cc44e08ff22" title="Performs the matrix transformation of every array element. ">transform</a> </dd></dl>
</div>
</div>
<a id="ga47069038267385913c61334e3d6af2e0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga47069038267385913c61334e3d6af2e0">◆ </a></span>getAffineTransform() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> cv::getAffineTransform </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>dst</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.getAffineTransform(</td><td class="paramname">src, dst</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
</div>
</div>
<a id="ga20f62aa3235d869c9956436c870893ae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga20f62aa3235d869c9956436c870893ae">◆ </a></span>getPerspectiveTransform() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> cv::getPerspectiveTransform </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>solveMethod</em> = <code><a class="el" href="../../d2/de8/group__core__array.html#ggaaf9ea5dcc392d5ae04eacb9920b9674ca247a3455cd64973152e17e26999dc024">DECOMP_LU</a></code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.getPerspectiveTransform(</td><td class="paramname">src, dst[, solveMethod]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<p>Calculates a perspective transform from four pairs of the corresponding points. </p>
<p>The function calculates the \(3 \times 3\) matrix of a perspective transform so that:</p>
<p class="formulaDsp">
\[\begin{bmatrix} t_i x'_i \\ t_i y'_i \\ t_i \end{bmatrix} = \texttt{map_matrix} \cdot \begin{bmatrix} x_i \\ y_i \\ 1 \end{bmatrix}\]
</p>
<p>where</p>
<p class="formulaDsp">
\[dst(i)=(x'_i,y'_i), src(i)=(x_i, y_i), i=0,1,2,3\]
</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>Coordinates of quadrangle vertices in the source image. </td></tr>
    <tr><td class="paramname">dst</td><td>Coordinates of the corresponding quadrangle vertices in the destination image. </td></tr>
    <tr><td class="paramname">solveMethod</td><td>method passed to <a class="el" href="../../d2/de8/group__core__array.html#ga12b43690dbd31fed96f213eefead2373" title="Solves one or more linear systems or least-squares problems. ">cv::solve</a> (<a class="el" href="../../d2/de8/group__core__array.html#gaaf9ea5dcc392d5ae04eacb9920b9674c" title="matrix decomposition types ">DecompTypes</a>)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d9/d0c/group__calib3d.html#ga4abc2ece9fab9398f2e560d53c8c9780" title="Finds a perspective transformation between two planes. ">findHomography</a>, <a class="el" href="../../da/d54/group__imgproc__transform.html#gaf73673a7e8e18ec6963e3774e6a94b87" title="Applies a perspective transformation to an image. ">warpPerspective</a>, <a class="el" href="../../d2/de8/group__core__array.html#gad327659ac03e5fd6894b90025e6900a7" title="Performs the perspective matrix transformation of vectors. ">perspectiveTransform</a> </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../de/dd4/samples_2cpp_2warpPerspective_demo_8cpp-example.html#a25">samples/cpp/warpPerspective_demo.cpp</a>, and <a class="el" href="../../db/da4/samples_2dnn_2text_detection_8cpp-example.html#a24">samples/dnn/text_detection.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="gae66ba39ba2e47dd0750555c7e986ab85"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae66ba39ba2e47dd0750555c7e986ab85">◆ </a></span>getPerspectiveTransform() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> cv::getPerspectiveTransform </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga7d080aa40de011e4410bca63385ffe2a">Point2f</a> </td>
          <td class="paramname"><em>src</em>[], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga7d080aa40de011e4410bca63385ffe2a">Point2f</a> </td>
          <td class="paramname"><em>dst</em>[], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>solveMethod</em> = <code><a class="el" href="../../d2/de8/group__core__array.html#ggaaf9ea5dcc392d5ae04eacb9920b9674ca247a3455cd64973152e17e26999dc024">DECOMP_LU</a></code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.getPerspectiveTransform(</td><td class="paramname">src, dst[, solveMethod]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>
</div>
</div>
<a id="ga77576d06075c1a4b6ba1a608850cd614"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga77576d06075c1a4b6ba1a608850cd614">◆ </a></span>getRectSubPix()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::getRectSubPix </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>image</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> </td>
          <td class="paramname"><em>patchSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga7d080aa40de011e4410bca63385ffe2a">Point2f</a> </td>
          <td class="paramname"><em>center</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>patch</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>patchType</em> = <code>-1</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>patch</td><td>=</td><td>cv.getRectSubPix(</td><td class="paramname">image, patchSize, center[, patch[, patchType]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<p>Retrieves a pixel rectangle from an image with sub-pixel accuracy. </p>
<p>The function getRectSubPix extracts pixels from src:</p>
<p class="formulaDsp">
\[patch(x, y) = src(x + \texttt{center.x} - ( \texttt{dst.cols} -1)*0.5, y + \texttt{center.y} - ( \texttt{dst.rows} -1)*0.5)\]
</p>
<p>where the values of the pixels at non-integer coordinates are retrieved using bilinear interpolation. Every channel of multi-channel images is processed independently. Also the image should be a single channel or three channel image. While the center of the rectangle must be inside the image, parts of the rectangle may be outside.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">image</td><td>Source image. </td></tr>
    <tr><td class="paramname">patchSize</td><td>Size of the extracted patch. </td></tr>
    <tr><td class="paramname">center</td><td>Floating point coordinates of the center of the extracted rectangle within the source image. The center must be inside the image. </td></tr>
    <tr><td class="paramname">patch</td><td>Extracted patch that has the size patchSize and the same number of channels as src . </td></tr>
    <tr><td class="paramname">patchType</td><td>Depth of the extracted pixels. By default, they have the same depth as src .</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../da/d54/group__imgproc__transform.html#ga0203d9ee5fcd28d40dbc4a1ea4451983" title="Applies an affine transformation to an image. ">warpAffine</a>, <a class="el" href="../../da/d54/group__imgproc__transform.html#gaf73673a7e8e18ec6963e3774e6a94b87" title="Applies a perspective transformation to an image. ">warpPerspective</a> </dd></dl>
</div>
</div>
<a id="gafbbc470ce83812914a70abfb604f4326"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gafbbc470ce83812914a70abfb604f4326">◆ </a></span>getRotationMatrix2D()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> cv::getRotationMatrix2D </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga7d080aa40de011e4410bca63385ffe2a">Point2f</a> </td>
          <td class="paramname"><em>center</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>angle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>scale</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.getRotationMatrix2D(</td><td class="paramname">center, angle, scale</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<p>Calculates an affine matrix of 2D rotation. </p>
<p>The function calculates the following matrix:</p>
<p class="formulaDsp">
\[\begin{bmatrix} \alpha &amp; \beta &amp; (1- \alpha ) \cdot \texttt{center.x} - \beta \cdot \texttt{center.y} \\ - \beta &amp; \alpha &amp; \beta \cdot \texttt{center.x} + (1- \alpha ) \cdot \texttt{center.y} \end{bmatrix}\]
</p>
<p>where</p>
<p class="formulaDsp">
\[\begin{array}{l} \alpha = \texttt{scale} \cdot \cos \texttt{angle} , \\ \beta = \texttt{scale} \cdot \sin \texttt{angle} \end{array}\]
</p>
<p>The transformation maps the rotation center to itself. If this is not the target, adjust the shift.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">center</td><td>Center of the rotation in the source image. </td></tr>
    <tr><td class="paramname">angle</td><td>Rotation angle in degrees. Positive values mean counter-clockwise rotation (the coordinate origin is assumed to be the top-left corner). </td></tr>
    <tr><td class="paramname">scale</td><td>Isotropic scale factor.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../da/d54/group__imgproc__transform.html#ga8f6d378f9f8eebb5cb55cd3ae295a999" title="Calculates an affine transform from three pairs of the corresponding points. ">getAffineTransform</a>, <a class="el" href="../../da/d54/group__imgproc__transform.html#ga0203d9ee5fcd28d40dbc4a1ea4451983" title="Applies an affine transformation to an image. ">warpAffine</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga393164aa54bb9169ce0a8cc44e08ff22" title="Performs the matrix transformation of every array element. ">transform</a> </dd></dl>
</div>
</div>
<a id="gaef89d8cc92350c452b5422c8c6c5f58c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaef89d8cc92350c452b5422c8c6c5f58c">◆ </a></span>getRotationMatrix2D_()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../dc/d84/group__core__basic.html#ga392a6836e5dbc164888f4e39c7d9d9af">Matx23d</a> cv::getRotationMatrix2D_ </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga7d080aa40de011e4410bca63385ffe2a">Point2f</a> </td>
          <td class="paramname"><em>center</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>angle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>scale</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../da/d54/group__imgproc__transform.html#gafbbc470ce83812914a70abfb604f4326" title="Calculates an affine matrix of 2D rotation. ">getRotationMatrix2D</a> </dd></dl>
</div>
</div>
<a id="ga57d3505a878a7e1a636645727ca08f51"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga57d3505a878a7e1a636645727ca08f51">◆ </a></span>invertAffineTransform()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::invertAffineTransform </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>M</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>iM</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>iM</td><td>=</td><td>cv.invertAffineTransform(</td><td class="paramname">M[, iM]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<p>Inverts an affine transformation. </p>
<p>The function computes an inverse affine transformation represented by \(2 \times 3\) matrix M:</p>
<p class="formulaDsp">
\[\begin{bmatrix} a_{11} &amp; a_{12} &amp; b_1 \\ a_{21} &amp; a_{22} &amp; b_2 \end{bmatrix}\]
</p>
<p>The result is also a \(2 \times 3\) matrix of the same type as M.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">M</td><td>Original affine transformation. </td></tr>
    <tr><td class="paramname">iM</td><td>Output reverse affine transformation. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="gaa38a6884ac8b6e0b9bed47939b5362f3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa38a6884ac8b6e0b9bed47939b5362f3">◆ </a></span>linearPolar()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::linearPolar </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga7d080aa40de011e4410bca63385ffe2a">Point2f</a> </td>
          <td class="paramname"><em>center</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>maxRadius</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>flags</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.linearPolar(</td><td class="paramname">src, center, maxRadius, flags[, dst]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<p>Remaps an image to polar coordinates space. </p>
<dl class="deprecated"><dt><b><a class="el" href="../../da/d58/deprecated.html#_deprecated000039">Deprecated:</a></b></dt><dd>This function produces same result as <a class="el" href="../../da/d54/group__imgproc__transform.html#ga49481ab24fdaa0ffa4d3e63d14c0d5e4" title="Remaps an image to polar or semilog-polar coordinates space. ">cv::warpPolar</a>(src, dst, <a class="el" href="../../df/d5b/namespacecv_1_1gapi_1_1streaming.html#a0a915e69f4cc8284293e40fc9ffbf157" title="Gets dimensions from Mat. ">src.size()</a>, center, maxRadius, flags)</dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../d4/d35/samples_2cpp_2polar_transforms_8cpp-example.html#a20">samples/cpp/polar_transforms.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="gaec3a0b126a85b5ca2c667b16e0ae022d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaec3a0b126a85b5ca2c667b16e0ae022d">◆ </a></span>logPolar()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::logPolar </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga7d080aa40de011e4410bca63385ffe2a">Point2f</a> </td>
          <td class="paramname"><em>center</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>M</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>flags</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.logPolar(</td><td class="paramname">src, center, M, flags[, dst]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<p>Remaps an image to semilog-polar coordinates space. </p>
<dl class="deprecated"><dt><b><a class="el" href="../../da/d58/deprecated.html#_deprecated000038">Deprecated:</a></b></dt><dd>This function produces same result as <a class="el" href="../../da/d54/group__imgproc__transform.html#ga49481ab24fdaa0ffa4d3e63d14c0d5e4" title="Remaps an image to polar or semilog-polar coordinates space. ">cv::warpPolar</a>(src, dst, <a class="el" href="../../df/d5b/namespacecv_1_1gapi_1_1streaming.html#a0a915e69f4cc8284293e40fc9ffbf157" title="Gets dimensions from Mat. ">src.size()</a>, center, maxRadius, flags+WARP_POLAR_LOG);</dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../d4/d35/samples_2cpp_2polar_transforms_8cpp-example.html#a19">samples/cpp/polar_transforms.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="gab75ef31ce5cdfb5c44b6da5f3b908ea4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab75ef31ce5cdfb5c44b6da5f3b908ea4">◆ </a></span>remap()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::remap </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>map1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>map2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>interpolation</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>borderMode</em> = <code><a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5aed2e4346047e265c8c5a6d0276dcd838">BORDER_CONSTANT</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp; </td>
          <td class="paramname"><em>borderValue</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a>()</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.remap(</td><td class="paramname">src, map1, map2, interpolation[, dst[, borderMode[, borderValue]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<p>Applies a generic geometrical transformation to an image. </p>
<p>The function remap transforms the source image using the specified map:</p>
<p class="formulaDsp">
\[\texttt{dst} (x,y) = \texttt{src} (map_x(x,y),map_y(x,y))\]
</p>
<p>where values of pixels with non-integer coordinates are computed using one of available interpolation methods. \(map_x\) and \(map_y\) can be encoded as separate floating-point maps in \(map_1\) and \(map_2\) respectively, or interleaved floating-point maps of \((x,y)\) in \(map_1\), or fixed-point maps created by using convertMaps. The reason you might want to convert from floating to fixed-point representations of a map is that they can yield much faster (2x) remapping operations. In the converted case, \(map_1\) contains pairs (cvFloor(x), cvFloor(y)) and \(map_2\) contains indices in a table of interpolation coefficients.</p>
<p>This function cannot operate in-place.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>Source image. </td></tr>
    <tr><td class="paramname">dst</td><td>Destination image. It has the same size as map1 and the same type as src . </td></tr>
    <tr><td class="paramname">map1</td><td>The first map of either (x,y) points or just x values having the type CV_16SC2 , CV_32FC1, or CV_32FC2. See convertMaps for details on converting a floating point representation to fixed-point for speed. </td></tr>
    <tr><td class="paramname">map2</td><td>The second map of y values having the type CV_16UC1, CV_32FC1, or none (empty map if map1 is (x,y) points), respectively. </td></tr>
    <tr><td class="paramname">interpolation</td><td>Interpolation method (see <a class="el" href="../../da/d54/group__imgproc__transform.html#ga5bb5a1fea74ea38e1a5445ca803ff121" title="interpolation algorithm ">InterpolationFlags</a>). The methods <a class="el" href="../../da/d54/group__imgproc__transform.html#gga5bb5a1fea74ea38e1a5445ca803ff121acf959dca2480cc694ca016b81b442ceb">INTER_AREA</a> and <a class="el" href="../../da/d54/group__imgproc__transform.html#gga5bb5a1fea74ea38e1a5445ca803ff121ac00f4a8155563cdc23437fc0959da935">INTER_LINEAR_EXACT</a> are not supported by this function. </td></tr>
    <tr><td class="paramname">borderMode</td><td>Pixel extrapolation method (see <a class="el" href="../../d2/de8/group__core__array.html#ga209f2f4869e304c82d07739337eae7c5">BorderTypes</a>). When borderMode=<a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5a886a5eb6b466854d63f9e742d5c8eefe" title="uvwxyz|abcdefgh|ijklmno ">BORDER_TRANSPARENT</a>, it means that the pixels in the destination image that corresponds to the "outliers" in the source image are not modified by the function. </td></tr>
    <tr><td class="paramname">borderValue</td><td>Value used in case of a constant border. By default, it is 0. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>Due to current implementation limitations the size of an input and output images should be less than 32767x32767. </dd></dl>
</div>
</div>
<a id="ga47a974309e9102f5f08231edc7e7529d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga47a974309e9102f5f08231edc7e7529d">◆ </a></span>resize()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::resize </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> </td>
          <td class="paramname"><em>dsize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>fx</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>fy</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>interpolation</em> = <code><a class="el" href="../../da/d54/group__imgproc__transform.html#gga5bb5a1fea74ea38e1a5445ca803ff121ac97d8e4880d8b5d509e96825c7522deb">INTER_LINEAR</a></code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.resize(</td><td class="paramname">src, dsize[, dst[, fx[, fy[, interpolation]]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<p>Resizes an image. </p>
<p>The function resize resizes the image src down to or up to the specified size. Note that the initial dst type or size are not taken into account. Instead, the size and type are derived from the <code>src</code>,<code>dsize</code>,<code>fx</code>, and <code>fy</code>. If you want to resize src so that it fits the pre-created dst, you may call the function as follows: </p><div class="fragment"><div class="line"><span class="comment">// explicitly specify dsize=dst.size(); fx and fy will be computed from that.</span></div><div class="line"><a class="code" href="../../da/d54/group__imgproc__transform.html#ga47a974309e9102f5f08231edc7e7529d">resize</a>(src, dst, dst.size(), 0, 0, interpolation);</div></div><!-- fragment --><p> If you want to decimate the image by factor of 2 in each direction, you can call the function this way: </p><div class="fragment"><div class="line"><span class="comment">// specify fx and fy and let the function compute the destination image size.</span></div><div class="line"><a class="code" href="../../da/d54/group__imgproc__transform.html#ga47a974309e9102f5f08231edc7e7529d">resize</a>(src, dst, <a class="code" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a>(), 0.5, 0.5, interpolation);</div></div><!-- fragment --><p> To shrink an image, it will generally look best with <a class="el" href="../../da/d54/group__imgproc__transform.html#gga5bb5a1fea74ea38e1a5445ca803ff121acf959dca2480cc694ca016b81b442ceb">INTER_AREA</a> interpolation, whereas to enlarge an image, it will generally look best with c::INTER_CUBIC (slow) or <a class="el" href="../../da/d54/group__imgproc__transform.html#gga5bb5a1fea74ea38e1a5445ca803ff121ac97d8e4880d8b5d509e96825c7522deb">INTER_LINEAR</a> (faster but still looks OK).</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input image. </td></tr>
    <tr><td class="paramname">dst</td><td>output image; it has the size dsize (when it is non-zero) or the size computed from <a class="el" href="../../df/d5b/namespacecv_1_1gapi_1_1streaming.html#a0a915e69f4cc8284293e40fc9ffbf157" title="Gets dimensions from Mat. ">src.size()</a>, fx, and fy; the type of dst is the same as of src. </td></tr>
    <tr><td class="paramname">dsize</td><td>output image size; if it equals zero, it is computed as: <p class="formulaDsp">
\[\texttt{dsize = Size(round(fx*src.cols), round(fy*src.rows))}\]
</p>
 Either dsize or both fx and fy must be non-zero. </td></tr>
    <tr><td class="paramname">fx</td><td>scale factor along the horizontal axis; when it equals 0, it is computed as <p class="formulaDsp">
\[\texttt{(double)dsize.width/src.cols}\]
</p>
 </td></tr>
    <tr><td class="paramname">fy</td><td>scale factor along the vertical axis; when it equals 0, it is computed as <p class="formulaDsp">
\[\texttt{(double)dsize.height/src.rows}\]
</p>
 </td></tr>
    <tr><td class="paramname">interpolation</td><td>interpolation method, see <a class="el" href="../../da/d54/group__imgproc__transform.html#ga5bb5a1fea74ea38e1a5445ca803ff121" title="interpolation algorithm ">InterpolationFlags</a></td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../da/d54/group__imgproc__transform.html#ga0203d9ee5fcd28d40dbc4a1ea4451983" title="Applies an affine transformation to an image. ">warpAffine</a>, <a class="el" href="../../da/d54/group__imgproc__transform.html#gaf73673a7e8e18ec6963e3774e6a94b87" title="Applies a perspective transformation to an image. ">warpPerspective</a>, <a class="el" href="../../da/d54/group__imgproc__transform.html#gab75ef31ce5cdfb5c44b6da5f3b908ea4" title="Applies a generic geometrical transformation to an image. ">remap</a> </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../dd/d93/samples_2cpp_2image_alignment_8cpp-example.html#a26">samples/cpp/image_alignment.cpp</a>, <a class="el" href="../../d0/df8/samples_2cpp_2train_HOG_8cpp-example.html#a56">samples/cpp/train_HOG.cpp</a>, <a class="el" href="../../d9/d8d/samples_2dnn_2classification_8cpp-example.html#a23">samples/dnn/classification.cpp</a>, <a class="el" href="../../d6/d39/samples_2dnn_2colorization_8cpp-example.html#a17">samples/dnn/colorization.cpp</a>, <a class="el" href="../../d4/db9/samples_2dnn_2object_detection_8cpp-example.html#a38">samples/dnn/object_detection.cpp</a>, and <a class="el" href="../../d4/d88/samples_2dnn_2segmentation_8cpp-example.html#a19">samples/dnn/segmentation.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="ga0203d9ee5fcd28d40dbc4a1ea4451983"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0203d9ee5fcd28d40dbc4a1ea4451983">◆ </a></span>warpAffine()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::warpAffine </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>M</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> </td>
          <td class="paramname"><em>dsize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>flags</em> = <code><a class="el" href="../../da/d54/group__imgproc__transform.html#gga5bb5a1fea74ea38e1a5445ca803ff121ac97d8e4880d8b5d509e96825c7522deb">INTER_LINEAR</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>borderMode</em> = <code><a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5aed2e4346047e265c8c5a6d0276dcd838">BORDER_CONSTANT</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp; </td>
          <td class="paramname"><em>borderValue</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a>()</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.warpAffine(</td><td class="paramname">src, M, dsize[, dst[, flags[, borderMode[, borderValue]]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<p>Applies an affine transformation to an image. </p>
<p>The function warpAffine transforms the source image using the specified matrix:</p>
<p class="formulaDsp">
\[\texttt{dst} (x,y) = \texttt{src} ( \texttt{M} _{11} x + \texttt{M} _{12} y + \texttt{M} _{13}, \texttt{M} _{21} x + \texttt{M} _{22} y + \texttt{M} _{23})\]
</p>
<p>when the flag <a class="el" href="../../da/d54/group__imgproc__transform.html#gga5bb5a1fea74ea38e1a5445ca803ff121aa48be1c433186c4eae1ea86aa0ca75ba">WARP_INVERSE_MAP</a> is set. Otherwise, the transformation is first inverted with <a class="el" href="../../da/d54/group__imgproc__transform.html#ga57d3505a878a7e1a636645727ca08f51" title="Inverts an affine transformation. ">invertAffineTransform</a> and then put in the formula above instead of M. The function cannot operate in-place.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input image. </td></tr>
    <tr><td class="paramname">dst</td><td>output image that has the size dsize and the same type as src . </td></tr>
    <tr><td class="paramname">M</td><td>\(2\times 3\) transformation matrix. </td></tr>
    <tr><td class="paramname">dsize</td><td>size of the output image. </td></tr>
    <tr><td class="paramname">flags</td><td>combination of interpolation methods (see <a class="el" href="../../da/d54/group__imgproc__transform.html#ga5bb5a1fea74ea38e1a5445ca803ff121" title="interpolation algorithm ">InterpolationFlags</a>) and the optional flag <a class="el" href="../../da/d54/group__imgproc__transform.html#gga5bb5a1fea74ea38e1a5445ca803ff121aa48be1c433186c4eae1ea86aa0ca75ba">WARP_INVERSE_MAP</a> that means that M is the inverse transformation ( \(\texttt{dst}\rightarrow\texttt{src}\) ). </td></tr>
    <tr><td class="paramname">borderMode</td><td>pixel extrapolation method (see <a class="el" href="../../d2/de8/group__core__array.html#ga209f2f4869e304c82d07739337eae7c5">BorderTypes</a>); when borderMode=<a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5a886a5eb6b466854d63f9e742d5c8eefe" title="uvwxyz|abcdefgh|ijklmno ">BORDER_TRANSPARENT</a>, it means that the pixels in the destination image corresponding to the "outliers" in the source image are not modified by the function. </td></tr>
    <tr><td class="paramname">borderValue</td><td>value used in case of a constant border; by default, it is 0.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../da/d54/group__imgproc__transform.html#gaf73673a7e8e18ec6963e3774e6a94b87" title="Applies a perspective transformation to an image. ">warpPerspective</a>, <a class="el" href="../../da/d54/group__imgproc__transform.html#ga47a974309e9102f5f08231edc7e7529d" title="Resizes an image. ">resize</a>, <a class="el" href="../../da/d54/group__imgproc__transform.html#gab75ef31ce5cdfb5c44b6da5f3b908ea4" title="Applies a generic geometrical transformation to an image. ">remap</a>, <a class="el" href="../../da/d54/group__imgproc__transform.html#ga77576d06075c1a4b6ba1a608850cd614" title="Retrieves a pixel rectangle from an image with sub-pixel accuracy. ">getRectSubPix</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga393164aa54bb9169ce0a8cc44e08ff22" title="Performs the matrix transformation of every array element. ">transform</a> </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../dd/d93/samples_2cpp_2image_alignment_8cpp-example.html#a32">samples/cpp/image_alignment.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="gaf73673a7e8e18ec6963e3774e6a94b87"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf73673a7e8e18ec6963e3774e6a94b87">◆ </a></span>warpPerspective()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::warpPerspective </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>M</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> </td>
          <td class="paramname"><em>dsize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>flags</em> = <code><a class="el" href="../../da/d54/group__imgproc__transform.html#gga5bb5a1fea74ea38e1a5445ca803ff121ac97d8e4880d8b5d509e96825c7522deb">INTER_LINEAR</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>borderMode</em> = <code><a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5aed2e4346047e265c8c5a6d0276dcd838">BORDER_CONSTANT</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp; </td>
          <td class="paramname"><em>borderValue</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a>()</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.warpPerspective(</td><td class="paramname">src, M, dsize[, dst[, flags[, borderMode[, borderValue]]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<p>Applies a perspective transformation to an image. </p>
<p>The function warpPerspective transforms the source image using the specified matrix:</p>
<p class="formulaDsp">
\[\texttt{dst} (x,y) = \texttt{src} \left ( \frac{M_{11} x + M_{12} y + M_{13}}{M_{31} x + M_{32} y + M_{33}} , \frac{M_{21} x + M_{22} y + M_{23}}{M_{31} x + M_{32} y + M_{33}} \right )\]
</p>
<p>when the flag <a class="el" href="../../da/d54/group__imgproc__transform.html#gga5bb5a1fea74ea38e1a5445ca803ff121aa48be1c433186c4eae1ea86aa0ca75ba">WARP_INVERSE_MAP</a> is set. Otherwise, the transformation is first inverted with invert and then put in the formula above instead of M. The function cannot operate in-place.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input image. </td></tr>
    <tr><td class="paramname">dst</td><td>output image that has the size dsize and the same type as src . </td></tr>
    <tr><td class="paramname">M</td><td>\(3\times 3\) transformation matrix. </td></tr>
    <tr><td class="paramname">dsize</td><td>size of the output image. </td></tr>
    <tr><td class="paramname">flags</td><td>combination of interpolation methods (<a class="el" href="../../da/d54/group__imgproc__transform.html#gga5bb5a1fea74ea38e1a5445ca803ff121ac97d8e4880d8b5d509e96825c7522deb">INTER_LINEAR</a> or <a class="el" href="../../da/d54/group__imgproc__transform.html#gga5bb5a1fea74ea38e1a5445ca803ff121aa5521d8e080972c762467c45f3b70e6c">INTER_NEAREST</a>) and the optional flag <a class="el" href="../../da/d54/group__imgproc__transform.html#gga5bb5a1fea74ea38e1a5445ca803ff121aa48be1c433186c4eae1ea86aa0ca75ba">WARP_INVERSE_MAP</a>, that sets M as the inverse transformation ( \(\texttt{dst}\rightarrow\texttt{src}\) ). </td></tr>
    <tr><td class="paramname">borderMode</td><td>pixel extrapolation method (<a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5aed2e4346047e265c8c5a6d0276dcd838" title="iiiiii|abcdefgh|iiiiiii with some specified i ">BORDER_CONSTANT</a> or <a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5aa1de4cff95e3377d6d0cbe7569bd4e9f" title="aaaaaa|abcdefgh|hhhhhhh ">BORDER_REPLICATE</a>). </td></tr>
    <tr><td class="paramname">borderValue</td><td>value used in case of a constant border; by default, it equals 0.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../da/d54/group__imgproc__transform.html#ga0203d9ee5fcd28d40dbc4a1ea4451983" title="Applies an affine transformation to an image. ">warpAffine</a>, <a class="el" href="../../da/d54/group__imgproc__transform.html#ga47a974309e9102f5f08231edc7e7529d" title="Resizes an image. ">resize</a>, <a class="el" href="../../da/d54/group__imgproc__transform.html#gab75ef31ce5cdfb5c44b6da5f3b908ea4" title="Applies a generic geometrical transformation to an image. ">remap</a>, <a class="el" href="../../da/d54/group__imgproc__transform.html#ga77576d06075c1a4b6ba1a608850cd614" title="Retrieves a pixel rectangle from an image with sub-pixel accuracy. ">getRectSubPix</a>, <a class="el" href="../../d2/de8/group__core__array.html#gad327659ac03e5fd6894b90025e6900a7" title="Performs the perspective matrix transformation of vectors. ">perspectiveTransform</a> </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../dd/d93/samples_2cpp_2image_alignment_8cpp-example.html#a38">samples/cpp/image_alignment.cpp</a>, and <a class="el" href="../../db/da4/samples_2dnn_2text_detection_8cpp-example.html#a25">samples/dnn/text_detection.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="ga49481ab24fdaa0ffa4d3e63d14c0d5e4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga49481ab24fdaa0ffa4d3e63d14c0d5e4">◆ </a></span>warpPolar()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::warpPolar </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> </td>
          <td class="paramname"><em>dsize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga7d080aa40de011e4410bca63385ffe2a">Point2f</a> </td>
          <td class="paramname"><em>center</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>maxRadius</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>flags</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.warpPolar(</td><td class="paramname">src, dsize, center, maxRadius, flags[, dst]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<p>Remaps an image to polar or semilog-polar coordinates space. </p>
<p><a class="anchor" id="polar_remaps_reference_image"></a></p><div class="image">
<img alt="polar_remap_doc.png" src="../../polar_remap_doc.png"/>
<div class="caption">
Polar remaps reference</div></div>
<p> Transform the source image using the following transformation: </p><p class="formulaDsp">
\[ dst(\rho , \phi ) = src(x,y) \]
</p>
<p>where </p><p class="formulaDsp">
\[ \begin{array}{l} \vec{I} = (x - center.x, \;y - center.y) \\ \phi = Kangle \cdot \texttt{angle} (\vec{I}) \\ \rho = \left\{\begin{matrix} Klin \cdot \texttt{magnitude} (\vec{I}) &amp; default \\ Klog \cdot log_e(\texttt{magnitude} (\vec{I})) &amp; if \; semilog \\ \end{matrix}\right. \end{array} \]
</p>
<p>and </p><p class="formulaDsp">
\[ \begin{array}{l} Kangle = dsize.height / 2\Pi \\ Klin = dsize.width / maxRadius \\ Klog = dsize.width / log_e(maxRadius) \\ \end{array} \]
</p>
<dl class="section user"><dt>Linear vs semilog mapping</dt><dd></dd></dl>
<p>Polar mapping can be linear or semi-log. Add one of <a class="el" href="../../da/d54/group__imgproc__transform.html#ga066c91770d0dea54cc1a018ce0344485" title="Specify the polar mapping mode. ">WarpPolarMode</a> to <code>flags</code> to specify the polar mapping mode.</p>
<p>Linear is the default mode.</p>
<p>The semilog mapping emulates the human "foveal" vision that permit very high acuity on the line of sight (central vision) in contrast to peripheral vision where acuity is minor.</p>
<dl class="section user"><dt>Option on dsize:</dt><dd></dd></dl>
<ul>
<li>if both values in <code>dsize &lt;=0</code> (default), the destination image will have (almost) same area of source bounding circle: <p class="formulaDsp">
\[\begin{array}{l} dsize.area \leftarrow (maxRadius^2 \cdot \Pi) \\ dsize.width = \texttt{cvRound}(maxRadius) \\ dsize.height = \texttt{cvRound}(maxRadius \cdot \Pi) \\ \end{array}\]
</p>
</li>
<li>if only <code>dsize.height &lt;= 0</code>, the destination image area will be proportional to the bounding circle area but scaled by <code>Kx * Kx</code>: <p class="formulaDsp">
\[\begin{array}{l} dsize.height = \texttt{cvRound}(dsize.width \cdot \Pi) \\ \end{array} \]
</p>
</li>
<li>if both values in <code>dsize &gt; 0</code>, the destination image will have the given size therefore the area of the bounding circle will be scaled to <code>dsize</code>.</li>
</ul>
<dl class="section user"><dt>Reverse mapping</dt><dd></dd></dl>
<p>You can get reverse mapping adding <a class="el" href="../../da/d54/group__imgproc__transform.html#gga5bb5a1fea74ea38e1a5445ca803ff121aa48be1c433186c4eae1ea86aa0ca75ba">WARP_INVERSE_MAP</a> to <code>flags</code> </p><div class="fragment"><div class="line">        <span class="comment">// direct transform</span></div><div class="line">        <a class="code" href="../../da/d54/group__imgproc__transform.html#ga49481ab24fdaa0ffa4d3e63d14c0d5e4">warpPolar</a>(src, lin_polar_img, <a class="code" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a>(),center, maxRadius, flags);                     <span class="comment">// linear Polar</span></div><div class="line">        <a class="code" href="../../da/d54/group__imgproc__transform.html#ga49481ab24fdaa0ffa4d3e63d14c0d5e4">warpPolar</a>(src, log_polar_img, <a class="code" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a>(),center, maxRadius, flags + <a class="code" href="../../da/d54/group__imgproc__transform.html#gga066c91770d0dea54cc1a018ce0344485aaa857239a6f4dc607b18d29b8b43daa7">WARP_POLAR_LOG</a>);    <span class="comment">// semilog Polar</span></div><div class="line">        <span class="comment">// inverse transform</span></div><div class="line">        <a class="code" href="../../da/d54/group__imgproc__transform.html#ga49481ab24fdaa0ffa4d3e63d14c0d5e4">warpPolar</a>(lin_polar_img, recovered_lin_polar_img, src.size(), center, maxRadius, flags + <a class="code" href="../../da/d54/group__imgproc__transform.html#gga5bb5a1fea74ea38e1a5445ca803ff121aa48be1c433186c4eae1ea86aa0ca75ba">WARP_INVERSE_MAP</a>);</div><div class="line">        <a class="code" href="../../da/d54/group__imgproc__transform.html#ga49481ab24fdaa0ffa4d3e63d14c0d5e4">warpPolar</a>(log_polar_img, recovered_log_polar, src.size(), center, maxRadius, flags + <a class="code" href="../../da/d54/group__imgproc__transform.html#gga066c91770d0dea54cc1a018ce0344485aaa857239a6f4dc607b18d29b8b43daa7">WARP_POLAR_LOG</a> + <a class="code" href="../../da/d54/group__imgproc__transform.html#gga5bb5a1fea74ea38e1a5445ca803ff121aa48be1c433186c4eae1ea86aa0ca75ba">WARP_INVERSE_MAP</a>);</div></div><!-- fragment --><p> In addiction, to calculate the original coordinate from a polar mapped coordinate \((rho, phi)-&gt;(x, y)\): </p><div class="fragment"><div class="line">        <span class="keywordtype">double</span> angleRad, <a class="code" href="../../d2/de8/group__core__array.html#ga6d3b097586bca4409873d64a90fe64c3">magnitude</a>;</div><div class="line">        <span class="keywordtype">double</span> Kangle = dst.rows / <a class="code" href="../../db/de0/group__core__utils.html#ga1ff4e987d10b07a31704ff710fda8df8">CV_2PI</a>;</div><div class="line">        angleRad = phi / Kangle;</div><div class="line">        <span class="keywordflow">if</span> (flags &amp; <a class="code" href="../../da/d54/group__imgproc__transform.html#gga066c91770d0dea54cc1a018ce0344485aaa857239a6f4dc607b18d29b8b43daa7">WARP_POLAR_LOG</a>)</div><div class="line">        {</div><div class="line">            <span class="keywordtype">double</span> Klog = dst.cols / <a class="code" href="../../d0/de1/group__core.html#ga4eba02a849f926ee1764acde47108753">std::log</a>(maxRadius);</div><div class="line">            magnitude = <a class="code" href="../../d0/de1/group__core.html#ga96ff82d32417d677722a7e786425c98e">std::exp</a>(rho / Klog);</div><div class="line">        }</div><div class="line">        <span class="keywordflow">else</span></div><div class="line">        {</div><div class="line">            <span class="keywordtype">double</span> Klin = dst.cols / maxRadius;</div><div class="line">            magnitude = rho / Klin;</div><div class="line">        }</div><div class="line">        <span class="keywordtype">int</span> x = <a class="code" href="../../db/de0/group__core__utils.html#ga085eca238176984a0b72df2818598d85">cvRound</a>(center.x + magnitude * <a class="code" href="../../d0/de1/group__core.html#gaf0f2fe47183d063fb7415097fbadb570">cos</a>(angleRad));</div><div class="line">        <span class="keywordtype">int</span> y = <a class="code" href="../../db/de0/group__core__utils.html#ga085eca238176984a0b72df2818598d85">cvRound</a>(center.y + magnitude * <a class="code" href="../../d0/de1/group__core.html#ga53a8656033a51db64caa72ee9d4e93b4">sin</a>(angleRad));</div></div><!-- fragment --> <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>Source image. </td></tr>
    <tr><td class="paramname">dst</td><td>Destination image. It will have same type as src. </td></tr>
    <tr><td class="paramname">dsize</td><td>The destination image size (see description for valid options). </td></tr>
    <tr><td class="paramname">center</td><td>The transformation center. </td></tr>
    <tr><td class="paramname">maxRadius</td><td>The radius of the bounding circle to transform. It determines the inverse magnitude scale parameter too. </td></tr>
    <tr><td class="paramname">flags</td><td>A combination of interpolation methods, <a class="el" href="../../da/d54/group__imgproc__transform.html#ga5bb5a1fea74ea38e1a5445ca803ff121" title="interpolation algorithm ">InterpolationFlags</a> + <a class="el" href="../../da/d54/group__imgproc__transform.html#ga066c91770d0dea54cc1a018ce0344485" title="Specify the polar mapping mode. ">WarpPolarMode</a>.<ul>
<li>Add <a class="el" href="../../da/d54/group__imgproc__transform.html#gga066c91770d0dea54cc1a018ce0344485a5a09af7a3e3a9782fbb9a41d66152ba5" title="Remaps an image to/from polar space. ">WARP_POLAR_LINEAR</a> to select linear polar mapping (default)</li>
<li>Add <a class="el" href="../../da/d54/group__imgproc__transform.html#gga066c91770d0dea54cc1a018ce0344485aaa857239a6f4dc607b18d29b8b43daa7" title="Remaps an image to/from semilog-polar space. ">WARP_POLAR_LOG</a> to select semilog polar mapping</li>
<li>Add <a class="el" href="../../da/d54/group__imgproc__transform.html#gga5bb5a1fea74ea38e1a5445ca803ff121aa48be1c433186c4eae1ea86aa0ca75ba">WARP_INVERSE_MAP</a> for reverse mapping. </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd><ul>
<li>The function can not operate in-place.</li>
<li>To calculate magnitude and angle in degrees <a class="el" href="../../d2/de8/group__core__array.html#gac5f92f48ec32cacf5275969c33ee837d" title="Calculates the magnitude and angle of 2D vectors. ">cartToPolar</a> is used internally thus angles are measured from 0 to 360 with accuracy about 0.3 degrees.</li>
<li>This function uses <a class="el" href="../../da/d54/group__imgproc__transform.html#gab75ef31ce5cdfb5c44b6da5f3b908ea4" title="Applies a generic geometrical transformation to an image. ">remap</a>. Due to current implementation limitations the size of an input and output images should be less than 32767x32767.</li>
</ul>
</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../da/d54/group__imgproc__transform.html#gab75ef31ce5cdfb5c44b6da5f3b908ea4" title="Applies a generic geometrical transformation to an image. ">cv::remap</a> </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../d4/d35/samples_2cpp_2polar_transforms_8cpp-example.html#a22">samples/cpp/polar_transforms.cpp</a>.</dd>
</dl>
</div>
</div>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:40 for OpenCV by  <a href="http://www.doxygen.org/index.html">
<img alt="doxygen" class="footer" src="../../doxygen.png"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
